/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.chatapp.Databaseacces;

import java.io.IOException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author bgorriz
 */
public class PropertyReader {
    
    
    
     //leer archivo properties
   public static Properties readPropertyFile(String id) throws IOException
   { 
       Properties prop=new Properties();
        try {
            prop.load(XmlDbDataSource.class.getClassLoader().getResourceAsStream(id));
        } catch (IOException ex) {
            Logger.getLogger(ImpXmlDbDataSource.class.getName()).log(Level.SEVERE, null, ex);
        } 
    //devolver que pasa si no devuelve fichero.
         return prop;   
    }
}
